package com.tckdq.tcc.feign;

import com.tckdq.tcc.result.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-media",fallbackFactory = MediaFeignFallbackFactory.class)
public interface MediaFeign {
    @RequestMapping(value = "mediaFile/list/byCourse/{courseId}",method = RequestMethod.GET)
    JsonResult getByCourseId(@PathVariable("courseId")Long courseId);

}
